package com.javasm.service;

import com.javasm.common.page.PageResult;
import com.javasm.domin.criteria.SaleOutDepotCriteria;
import com.javasm.domin.entity.SaleOutDepot;
import com.javasm.domin.entity.SodDetailConn;
import com.javasm.domin.vo.SaleOutDepotVo;
import com.javasm.domin.vo.SodSnVo;
import com.javasm.service.base.BaseService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author whl
 * @since 2022-01-17
 */
public interface SaleOutDepotService extends BaseService<SaleOutDepot> {
    /**
     * 分页 连表查询
     * @param criteria
     * @return
     */
    PageResult<SaleOutDepotVo> serchPage(SaleOutDepotCriteria criteria);

    /**
     * 通过ID 连表查询
     * @param id
     * @return
     */
    SaleOutDepotVo getSodById(Long id);

    /**
     * 详情 连表查询包含的商品信息
     * @return
     * @param id
     */
    List<SodDetailConn> getDetail(Long id);

    /**
     * 通过出库单id查询指定出库单的串码信息
     * @param id 出库单id
     * @return 串码list
     */
    List<SodSnVo> getSodSn(Long id);
}
